using Ewk.MachineLearning.Classification.Interfaces;

namespace Ewk.MachineLearning.Classification.Common
{
    public class EntityComparer<T> :
        Comparer<IEntity>
        where T : IEntity
    {
        public EntityComparer()
            : base((x, y) => x.Id.CompareTo(y.Id),
                   x => x.Id.GetHashCode())
        {
        }
    }
}